package com.example.wenzimanxian;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import java.util.zip.Inflater;

public class StartActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);
        Log.i("activity","onCreate");
        Button astrat=findViewById(R.id.A_strat);
        astrat.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(StartActivity.this,Strat1Activity.class);
                startActivity(intent);
            }
        });
        Button bstrat=findViewById(R.id.B_start);
        bstrat.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent= new Intent(StartActivity.this,Strat2Activity.class);
                startActivity(intent);
            }
        });


    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i("activity","onStart");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i("activity","onResume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i("activity","onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i("activity","onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i("activity","onDestroy");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i("activity","onRestart");
    }
}
